package com.game.springbootstart.service;

import com.game.springbootstart.DTO.CommentDTO;
import com.game.springbootstart.DTO.CommentsDTO;
import com.game.springbootstart.VO.CommentVO;
import com.game.springbootstart.VO.CommentsVO;
import com.game.springbootstart.entity.Comments;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2025-03-17
 */
public interface ICommentsService extends IService<Comments> {
    boolean updateBycommentId(Long commentId, Boolean like, Long userId);

    List<CommentsDTO> getCommentsByGameId(CommentsVO commentsVO);

    Boolean delete(CommentsVO commentsVO);

    List<CommentsDTO> getCommentsByUserId(Long userId);

    void removeByParentId(Long commentId);

    void removeByMainId(Long commentId);

    List<CommentsDTO> pageComments(CommentVO commentVO);

    String getName(Long userId);

    String getGame(Long gameId);

    List<CommentDTO> getComments(CommentVO commentVO, int startRow);

    Boolean updateBycommentId(Long commentId, Boolean like);
}
